package com.woniuxy.carrental.mapper;

import com.woniuxy.carrental.entity.Parking;
import com.woniuxy.carrental.entity.RentCarInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-10-10 22:27
 */
public interface ParkingMapper {

    public void addParking(Parking parking);

    public List<Parking> getParking();


    public void updateParking(@Param("parking") Parking parking);

    public List<Parking> selectAllParking(
            @Param("parking") Parking parking,
            @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    public int selectParkingCountBylimit(@Param("parking") Parking parking);

    public void delectParkingByid(int parkid);

    public List<RentCarInfo> getRentCarInfobyparkid(int parkid);


    public void updateStareParking(int parkid);


    public Parking selectByParkingid(int parkid);


    public void updateNumByParkid(@Param("parkid")int parkid,@Param("parkcarnumber")int parkcarnumber);


    public Parking selectnumberBylonlan(String lonlat);


}
